
//
//  UIButton+Extension.swift
//  weibo007
//
//  Created by 陈宗毅 on 15/12/21.
//  Copyright © 2015年 czy. All rights reserved.
//

import UIKit

extension UIButton {

    convenience init(imageName:String,fontSize:CGFloat,title:String){
        self.init()
        
        //设置图片
        setImage(UIImage(named: imageName), forState: UIControlState.Normal)
        //设置文字颜色
       setTitleColor(UIColor.lightGrayColor(), forState: UIControlState.Normal)
        //设置文字大小
       titleLabel?.font = UIFont.systemFontOfSize(fontSize)
        //设置文字内容
        setTitle(title, forState: UIControlState.Normal)

    
    }



}
